<?php if (!defined('BASEPATH')) exit('No direct script access allowed');

class AdminController extends PrivateController{
	var $_authNotLoggedPage = "admin/login";
	
	function AdminController(){
		parent::PrivateController("admin");
		
		define("IS_ADMIN", TRUE);
		
		$this->_template = $this->settings->item("_admin_template");
		$this->_layout = $this->settings->item("_admin_layout");
		
		$this->config->set_item("template_name", $this->_template);	
		
		$enable_profiler = $this->settings->item("_admin_enable_profiler");
		if($enable_profiler !== NULL && $enable_profiler){
			$this->output->enable_profiler ( TRUE );
		} else{
			$this->output->enable_profiler ( FALSE );
		}
		
	}
	
}
